package cn.tedu._07vehicle.base.response;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author tune_the last
 * @date 2025/11/13 - 11:59
 */
@Getter
@AllArgsConstructor
public enum StatusCode {
    OPERATION_SUCCESS(2000, "操作成功"),
    OPERATION_FAIL(3000, "操作失败"),
    USERNAME_EXISTS(1000, "用户名被占用"),
    USERNAME_PASSWORD_ERROR(1001, "用户名或密码错误"),
    NOT_LOGIN(1002, "未登陆"),
    THROWABLE_ERROR(1003, "未知异常"),
    Validation_FAIL(1004, "数据验证失败"),
    UPLOAD_FILE_ERROR(1005, "文件上传失败");

    private Integer state;
    private String message;

}
